<?php
/**
 * 微点餐
 *
 * 作者:迷失卍国度
 *
 * qq : 15595755
 */
defined('IN_IA') or exit('Access Denied');

class weisrc_dishModule extends WeModule
{
    public $name = 'weisrc_dishModule';

    public function fieldsFormDisplay($rid = 0)
    {
        global $_W;
    }

    public function fieldsFormSubmit($rid = 0)
    {
        global $_GPC, $_W;
    }

    public function welcomeDisplay()
    {
        global $_GPC, $_W;


        $sysaccount = pdo_fetch("select * from " . tablename('account') . " WHERE uniacid=:uniacid LIMIT 1", array
        (':uniacid'
    => $_W['uniacid']));


        if ($sysaccount['type'] == 4) {
            $url = $this->createWebUrl('wxappsetting', array('op' => 'display'));
            Header("Location: " . $url);
        } else {
            $url = $this->createWebUrl('main', array('op' => 'display'));
            Header("Location: " . $url);
        }

//        if ($_GPC['version_id'] != 1) {

//        } else {
//            $url = $this->createWebUrl('wxappsetting', array('op' => 'display'));
//            Header("Location: " . $url);
//        }
    }
}